home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ 3⁄16⁄90 / 0908-Printing Views in Ad-Mar90 < prev    next >
Encoding:
Text File  |  1990-03-16  |  1.9 KB  |  56 lines  |  [TEXT/GEOL]

  1. Item    8190465                         16-March-90        03:43PST
  2.  
  3. From:   MADA2                           MacApp Dev Assoc, Curtis Faith,IVC
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. Sub:    Printing Views in AdornPage
  8.  
  9. Here is another printing question,
  10.  
  11. I am trying to implement some special behavior in a PrintHandler.
  12.  
  13. Specifically I would like to print a view in the AdornPage method.  To further
  14. complicate matters I want to be able to print certain portions of the view in
  15. various pages depending on the page number and position.
  16.  
  17. For example:
  18.  
  19. Suppose I have a view that has an extent of 1000 h and 20 v,
  20.  
  21. I would like to know how I could cause the left most 600 pixels of this view to
  22. be printed on one page at a 30,30 offset from the top left corner of the Ink.
  23. and the remaining 400 X 20 to be printed at the same location on the next page.
  24.  
  25. This all needs to be done in adornPage.
  26.  
  27. I cannot use a container view to enclose both the view that is being printed
  28. and my adorn View.
  29.  
  30. For another example, I might have a view representing a logo.  I want to be
  31. able to print it on the right side of odd pages at position 500,30 and on the
  32. left side of even pages at position 30, 30.
  33.  
  34. I can't just use QuickDraw.  I want to be able to do this with Views, even some
  35. that could contain subViews.
  36.  
  37. Any hints?  Where should I look for more information?
  38.  
  39. I have read through most of TStdPrintHandler and though I have a general idea
  40. what is going on in most areas, there are some parts that I find particularly
  41. difficult to comprehend.
  42.  
  43. My general impression is that TStdPrintHandler sets up the ClipRegion for the
  44. printer GrafPort to be the area of the view that is to be drawn for a given
  45. page.
  46.  
  47. One point that I miss is how it controls the relation between page coordinates
  48. and view coordinates.
  49.  
  50. Anyone understand this stuff intimately?
  51.  
  52. Thanks in Advance,
  53.  
  54. Curtis
  55.  
  56.